import { EExceptionStatusCode, IException } from '@/types/common'

// 404 异常类
export default class NotFoundError extends Error implements IException {
  // 状态码
  public statusCode: EExceptionStatusCode

  // 构造函数
  constructor(message: string = '404 Not Found') {
    super(message)
    this.statusCode = EExceptionStatusCode.NOT_FOUND
    this.name = 'NotFoundError'
  }
}
